package com.yc.menu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yc.base.BaseService;
import com.yc.menu.entity.Menu;

import java.util.List;
/**
 * <p>
 * 后台菜单表 服务类
 * </p>
 *
 * @author bao
 * @since 2021-12-09
 */
public interface IMenuService extends BaseService<Menu> {

    boolean create(Menu menu);

    boolean createBatch(List<Menu> menuList);

    boolean delete(List<Long> ids);

    boolean update(Menu menu);

    Menu queryById(Long id);

    List<Menu> selectList();

    IPage<Menu> selectPage(IPage<Menu> page);

    List<Menu> selectMenuPermission(long uid);

}
